<?
    class HeaderTextPair extends HTMLControl {
        function __construct($title,$text) {
            parent::__construct("div");
            
            $title = new HTMLControl("h2",$title);
            $this->AddChild($title);
            
            $message = new HTMLControl("span",$text);
            $this->AddChild($message);
        }
    }
?>